#pragma once

#include <cstdint>
#include <string>
#include <set>

#include "1800_agency.pb.h"

struct stAgency
{
	std::uint32_t id;
	std::string name;
	std::string encode_key;
	std::string currency;
	std::set<std::string> country_list;
	std::set<std::string> language_list;
	std::string api_url;
	std::string call_url;
	std::set<std::string> white_ips;
	std::int32_t state = 0; // 0:未启用,1:启用,2:停用
	std::vector<std::string> agent_url;  // 分配agent的线路
	std::set<std::uint32_t> gamelist;
	std::int64_t currency_unit_multi;

    void CopyFrom(const agency_proto::Agency& agency);
    void CopyTo(agency_proto::Agency& agency) const;

	stAgency& operator = (const stAgency& that);
	stAgency& operator = (stAgency&& that);

	std::string ToString() const;
};





